package cn.edu.xmu.oomall.order.microservice;

import cn.edu.xmu.oomall.core.config.OpenFeignConfig;
import cn.edu.xmu.oomall.order.microservice.vo.UserVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "privilege-service", configuration = OpenFeignConfig.class)
public interface PrivilegeService {
    /** 获得用户名 */
//    @GetMapping(value = "/internal/users/{id}")
//    InternalReturnObject<UserVo> getUserById(@PathVariable Long id);


    /** 测试openfeign */
    @GetMapping(value = "/test/{id}")
    String test(@PathVariable Long id);
}
